package com.andaily.domain.dto.thing;

import com.andaily.domain.shared.paginated.DefaultPaginated;
import com.andaily.domain.shared.security.SecurityUtils;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Shengzhao Li
 */
public class EventOverviewDto extends DefaultPaginated<EventDto> {

    public EventOverviewDto() {
        setPerPageSize(50);
    }

    public Map<String, Object> params() {
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("userGuid", SecurityUtils.currentUserGuid());
        map.put("perPageSize", getPerPageSize());
        map.put("startIndex", getStartIndex());
        return map;
    }
}
